package components;

import interfaces.Cracker;

public class RSACracker implements Cracker {

	@Override
	public RSAKey crack(RSAKey publicKey, String cypherText) {
		return null;
	}

	@Override
	public RSAKey wienerAttack(RSAKey publicKey) {
		RSABreaker wAttack = new RSAWienerBreaker(publicKey.getExp(), publicKey.getN());
		return new RSAKey (publicKey.getN(), wAttack.attack());
	}

}
